<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="include/taglibs.jsp" %>
<%
	session.setAttribute("ctx",request.getContextPath());
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>MALINI</title>
<!--css-->
<link href="<%=request.getContextPath()%>/css/main_index.css" rel="stylesheet" type="text/css" media="all" />
<!--jquery 1.3.1-->
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery-1.3.1.min.js"></script>
<script type='text/javascript' src='<%=request.getContextPath()%>/js/jfade.js'></script>

<!--导航-->
<script type="text/javascript" src="<%=request.getContextPath()%>/js/ddaccordion.js"></script>
<!--导航幻灯片初始.导航点击效果-->
<script type="text/javascript" src="<%=request.getContextPath()%>/js/meunlb.js"></script>
<!--导航幻灯片点击切换效果-->
<script type="text/javascript">



function register(){	
	document.forms[1].submit();  
}

function login(){
	document.forms[0].submit();  
}

</script>
</head>

<body >
<div class="main_cont">
<%@ include file="top.jsp" %>
<div class="main_contain">
<div class="main_l">
<a href="#"><img src="<%=request.getContextPath()%>/images/main_logo.gif" /></a>
<%@ include file="menu.jsp" %>
<%@ include file="bottom.jsp" %>
</div>
<div class="main_r" id="test_"   onmouseover="ddaccordion.collapseall('menuheaders');return false;" > 
<div class="reg1">
<table width="370" border="0" cellspacing="0" cellpadding="0" class="reg_f">
<form name="loginform" action="/malini/userAction.do?op=login" method="post">
  <tr>
    <td colspan="2" style="text-align:center;font-weight:bold; font-size:13px">如果您是老会员请登录</td>
  </tr>
   <tr>
    <td colspan="2" align="left">&nbsp;</td>
  </tr>
  <tr>
    <td width="120px" class="td1" >您的用户名：</td>
    <td><input name="loginPhone" id="loginPhone"  type="text"  class="input1"/></td>
  </tr>
  <tr>
    <td class="td1">请输入您的密码：</td>
    <td><input name="loginPwd" id="loginPwd" type="password" class="input1"/></td>
  </tr>
  <tr>
    <td class="td1">验证码：</td>
    <td> <input type="text" name="loginCheckCode" id="loginCheckCode"  class="input1" maxlength="4" style="width:80px;" />&nbsp;&nbsp;&nbsp;&nbsp;
    <img style="vertical-align:middle;" border="0" src="<%=request.getContextPath()%>/randomImage" alt="点击图片获取另一张" onclick="javascript:this.src=this.src+'?'+Math.random()"/></td>
  </tr>
    <tr>
    <td></td>
    <td  ><input name="saveLoginUser" type="checkbox" checked="checked"/> 保存用户名</td>
  </tr>
  <tr>
  <td></td>
    <td ><button class="button0" hidefocus="hidefocus"  onclick="login();"><span><em>登&nbsp;&nbsp;录</em></span></button>&nbsp;&nbsp;&nbsp;忘记密码</td>
  </tr>

  </form>
</table>
<div class="Prompt">亲爱的会员：请不要忘了，您所拥有的积分可在本次购买时抵用</div>

</div>
<div class="reg2">
<table width="370" border="0" cellspacing="0" cellpadding="0" class="reg_f">
<form method="post" action="/malini/userAction.do?op=register" name="registerform">
 <tr>
    <td colspan="2" style="text-align:center;font-weight:bold; font-size:13px">如果您是新会员请注册</td>
  </tr>
  <tr>
    <td colspan="2" align="left">${regsiterMsg}&nbsp;</td>
  </tr>
  <tr>
    <td width="120px" class="td1">您的用户名：</td>
    <td><input name="registerPhone" id="registerPhone" type="text"  class="input1"/></td>
  </tr>
  <tr>
    <td class="td1">请输入您的密码：</td>
    <td><input name="registerPwd" id="registerPwd" type="password" class="input1"/></td>
  </tr>
 <tr>
    <td class="td1">请再次输入您的密码：</td>
    <td><input name="repeatPwd" id="repeatPwd" type="password" class="input1"/></td>
  </tr>
  <tr>
    <td class="td1">验证码：</td>
    <td>
    <input type="text" name="validateCode" id="validateCode" maxlength="4" class="input1" style="width:80px;" />&nbsp;&nbsp;&nbsp;&nbsp;
    <img style="vertical-align:middle;" border="0" src="<%=request.getContextPath()%>/randomImage" alt="点击图片获取另一张" onclick="javascript:this.src=this.src+'?'+Math.random()"/></td>
  </tr>
    <tr>
    <td></td>
 <td><button class="button0" hidefocus="hidefocus" onclick="register();"><span><em>注&nbsp;&nbsp;册</em></span></button></td>
  </tr>


  </form>
</table>
<div class="Prompt" ><input type="checkbox" checked="checked"/>我已经阅读过<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;并同意遵守亿申电子商务网站《用户使用协议》的相关内容</div>

</div>
</div>
</div>

</div>
<script type="text/javascript">
<!--
$(document).ready(function(){
	$("#test_image a").jfade();
	
	$("#test_image a").bind("click", function(){
		$("#test_image a").each(function(){
			$(this).css("border","2px solid #0f0e0c");
		})
  		$(this).css("border","2px solid #2e2e2e"); 
	});
$("#test_image img").bind("click", function(){
		
  		var test_image = $(this).attr("name");
  		var paras = $(this).attr("id");
  		var base='<%=session.getAttribute("ctx")%>';
		$("#test_").html("<div class=\"pro_pic\"><img src='"+test_image+"' onmouseover=\"ddaccordion.collapseall('menuheaders');return false\"/><a href='"+base+"/productNewAction.do?op=findNewProductById"+paras+"' class=\"pic_more\"><font color=\"#ffffff\">点击购买>></font></a></div>");
	});    
})
//-->
</script>
</body>
</html>
